package com.compus_help.Mapper;

import com.compus_help.entity.DTO.OrderCategoryPageDTO;
import com.compus_help.entity.Pojo.OrderCategory;
import com.github.pagehelper.Page;

import java.util.List;

public interface OrderCategoryMapper {

    List<OrderCategory> selectEnabledCategories();

    Page<OrderCategory> getOrderCategoryPage(OrderCategoryPageDTO orderCategoryPageDTO);

    void addCategory(OrderCategory orderCategory);

    void changeStatus(String status, Integer categoryId);

    void updateCategory(OrderCategory orderCategory);

    void deleteCategory(Integer categoryId);
}
